package com.bms.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

/**
 * @author Lan
 */
@Entity
@Table(name = "T_SENSITIVE")
public class SensitiveWord extends BaseEntity {

	private static final long serialVersionUID = -5464750995305370331L;

	private String word;// 敏感字
	private String filePath;// 敏感字的文本路径（保留字段）

	public SensitiveWord() {
	}

	public SensitiveWord(String word) {
		this.word = word;
	}

	/**
	 * @return 敏感字
	 */
	@Column(nullable = false, unique = true, length = 200)
	public String getWord() {
		return word;
	}

	/**
	 * @param word
	 *            敏感字
	 */
	public void setWord(String word) {
		this.word = word;
	}

	/**
	 * @return 敏感字的文本路径（保留字段）
	 */
	@Column(length = 300)
	public String getFilePath() {
		return filePath;
	}

	/**
	 * @param filePath
	 *            敏感字的文本路径（保留字段）
	 */
	public void setFilePath(String filePath) {
		this.filePath = filePath;
	}
}
